package com.imy.luascript.retrofit;

/**
 * 异常码表
 *
 * @author: Imy
 * @date: 2017-06-15
 */
public class ERROR {

  /**
   * 未知错误
   */
  public static final int UNKNOWN = 1000;
  /**
   * 解析错误
   */
  public static final int PARSE_ERROR = 1001;
  /**
   * 网络错误
   */
  public static final int NETWORD_ERROR = 1002;

  /**
   * 超时
   */
  public static final int TIME_OUT = 1003;
  /**
   * 空指针异常
   */
  public static final int NULL_POINTER = 1004;
  /**
   * 下线
   */
  public static final int OUT_LINE = 1005;
  /**
   * 返回code错误
   */
  public static final int CODE_ERROR=10006;


  //对应HTTP的状态码(以下皆为网络错误)
  public static final int UNAUTHORIZED = 401;
  public static final int FORBIDDEN = 403;
  public static final int NOT_FOUND = 404;
  public static final int REQUEST_TIMEOUT = 408;
  public static final int INTERNAL_SERVER_ERROR = 500;
  public static final int BAD_GATEWAY = 502;
  public static final int SERVICE_UNAVAILABLE = 503;
  public static final int GATEWAY_TIMEOUT = 504;



}
